<template>
<div id="root">
<button @click="handleClick">学生</button>
</div>
</template>

<script>
import axios from 'axios'

export default  {
  name: 'App',
  data(){
    return{

    }
  },
  methods: {
    handleClick(){
      axios.get('http://localhost:8080/api/students').then(
      response=>{
        console.log(response.data)
      },
      error=>{
        console.log(error)
      }
    )
    }
  }
}
</script>
<style scoped>

</style>
